package com.ruiysoft.controller.statement.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * StatementRecordVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-01-05T11:49:17.029+08:00")

public class StatementRecordVo {
  @JsonProperty("date")
  private Long date = null;

  @JsonProperty("status")
  private Integer status = null;

  @JsonProperty("summary")
  private String summary = null;

  public StatementRecordVo date(Long date) {
    this.date = date;
    return this;
  }

  /**
   * 记账时间戳
   * @return date
  **/
  @ApiModelProperty(example = "1", value = "记账时间戳")


  public Long getDate() {
    return date;
  }

  public void setDate(Long date) {
    this.date = date;
  }

  public StatementRecordVo status(Integer status) {
    this.status = status;
    return this;
  }

  /**
   * 状态（1，开始，2，进行，3，完成）
   * @return status
  **/
  @ApiModelProperty(value = "状态（1，开始，2，进行，3，完成）")


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public StatementRecordVo summary(String summary) {
    this.summary = summary;
    return this;
  }

  /**
   * 简介
   * @return summary
  **/
  @ApiModelProperty(example = "1", value = "简介")


  public String getSummary() {
    return summary;
  }

  public void setSummary(String summary) {
    this.summary = summary;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    StatementRecordVo StatementRecordVo = (StatementRecordVo) o;
    return Objects.equals(this.date, StatementRecordVo.date) &&
        Objects.equals(this.status, StatementRecordVo.status) &&
        Objects.equals(this.summary, StatementRecordVo.summary);
  }

  @Override
  public int hashCode() {
    return Objects.hash(date, status, summary);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StatementRecordVo {\n");
    
    sb.append("    date: ").append(toIndentedString(date)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    summary: ").append(toIndentedString(summary)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

